/*
 * @Author: your name
 * @Date: 2020-10-06 16:44:13
 * @LastEditTime: 2020-10-19 17:41:25
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_web\src\apis\user\MaterialsDemand.js
 */
import request from '@/utils/request'

//获取产品需求MaterialsDemand分页列表
export function GetproductList(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/productInfo/getSearchPageList",
    method: "POST",
    data,
  })
}

//获取详细信息和图片
export function GetproductDetail(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/productInfo/detail",
    method: "POST",
    data,
  })
}

//添加
export function Addproduct(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/productInfo/addproduct",
    method: "POST",
    data,
  })
}

//删除
export function Deleteproduct(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/productInfo/delete",
    method: "POST",
    data,
  })
}

//修改
export function Updateproduct(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/productInfo/update",
    method: "POST",
    data,
  })
}

//上下架
export function updateProductStatus(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/productInfo/updateProductStatus",
    method: "POST",
    data,
  })
}

//获取首页统计
export function userHomeTj() {
  return request({
    url: "/wenge/microservice-supply-consumer-web/productInfo/homeTj",
    method: "POST",
  })
}


//续签
export function addDurationTime(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/user/productInfo/addDurationTime",
    method: "POST",
    data,
  })
}

// 查看推送
export function getProductEntPush(data) {
  return request({
    url: "/wenge/microservice-supply-consumer-web/productCategory/getProductEntPush",
    method: "POST",
    data,
  })
}